﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

/// <summary>
///  
/// </summary>
namespace WarehouseManager.Common
{
    public static class MessageBoxHelp
    {
        internal static DialogResult ShowMsgWarning(string strText)
        {
           return MessageBox.Show(strText, "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);            
        }

        internal static DialogResult ShowMsgQuestionYesNoCancel(string strText)
        {
           return MessageBox.Show(strText, "选择", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
        }

        internal static DialogResult ShowMsgQuestionYesNo(string strText)
        {
            return MessageBox.Show(strText, "选择", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
        }


        internal static DialogResult ShowMsgError(string strText)
        {
            return MessageBox.Show(strText, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        internal static DialogResult ShowMsgInfor(string strText)
        {
            return MessageBox.Show(strText, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

    }
}
